/* ======================================= */
/* AITOOLS.CSS - Specifieke stijlen voor aitools.html */
/* ======================================= */

/* AI Tools Section */
.aitools-section {
  padding: 2rem;
}

.aitools-section h1 {
  font-size: 2.5rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.aitools-section .intro {
  text-align: center;
  color: #aeb5be;
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.01rem;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.aitools-section .intro b {
  color: var(--link-color);
  font-weight: 600;
}

/* Category Groups */
.category-group {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
}

/* Tiles Grid voor AI Tools */
.aitools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ======================================= */
/* AI Tool Cards */
/* ======================================= */
a.aitool-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;

  /* minder "flets": subtiele gradient + diepte */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015) 55%,
    rgba(0, 0, 0, 0) 100%
  );

  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--border-color));
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);

  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none !important;
  outline: none !important;
  color: inherit !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  cursor: pointer;
}

a.aitool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  border-color: var(--link-color);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

a.aitool-card:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--link-color));
  transition: all 0.3s ease;
}

a.aitool-card img {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

a.aitool-card:active {
  transform: translateY(-2px) scale(0.98);
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
}

a.aitool-card h3 {
  font-size: 1.3rem;
  color: var(--link-color) !important;
  margin-bottom: 1rem;
  margin-top: 0;
}

a.aitool-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b5bcc5 !important;
  margin: 0;
  flex-grow: 1;
}

a.aitool-card:visited,
a.aitool-card:active,
a.aitool-card:focus {
  color: inherit !important;
  text-decoration: none !important;
}

/* ======================================= */
/* FEATURED (MEEST GEBRUIKT) - VISUELE ACCENTEN */
/* ======================================= */

.featured-group {
  margin-bottom: 4.5rem;
}

.featured-group .category-title {
  border-bottom-color: color-mix(
    in srgb,
    var(--link-color) 45%,
    var(--border-color)
  );
}

.featured-grid {
  gap: 1.25rem;
}

.featured-grid a.aitool-card {
  position: relative;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--link-color) 40%, var(--border-color));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--link-color) 10%, transparent),
    transparent 55%
  );
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.featured-grid a.aitool-card::after {
  content: "TOP";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-color);
  background: color-mix(in srgb, var(--link-color) 22%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--link-color) 45%, var(--border-color));
}

.featured-grid a.aitool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

@media (min-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
}

/* Footnote */
.aitools-section .footnote {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: #aeb5be;
  font-size: 0.95rem;
}

/* Responsive voor AI Tools */
@media (max-width: 768px) {
  .aitools-section {
    padding: 1rem;
  }

  .aitools-section h1 {
    font-size: 1.8rem;
  }

  .category-title {
    font-size: 1.4rem;
  }

  .aitools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  a.aitool-card {
    padding: 1rem;
  }

  a.aitool-card img {
    width: 60px;
    height: 60px;
  }
}

/* ======================================= */
/* AI TOOLS LIGHT MODE AANPASSINGEN        */
/* ======================================= */
:root.light-mode .aitools-section h1 {
  color: #0969da;
}

:root.light-mode .aitools-section .intro {
  color: #24292f;
}

:root.light-mode .aitools-section .intro b {
  color: #0969da;
}

:root.light-mode .category-title {
  color: #24292f;
  border-bottom: 2px solid #d0d7de;
}

:root.light-mode a.aitool-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid color-mix(in srgb, #0969da 10%, #d0d7de);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

:root.light-mode a.aitool-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  border-color: #0969da;
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
}

:root.light-mode a.aitool-card:hover img {
  filter: drop-shadow(0 0 10px #0969da);
}

:root.light-mode a.aitool-card:active {
  background: #eaeef2;
}

:root.light-mode a.aitool-card h3 {
  color: #0969da !important;
}

:root.light-mode a.aitool-card p {
  color: #57606a !important;
}

:root.light-mode .aitools-section .footnote {
  border-top: 1px solid #d0d7de;
  color: #57606a;
}

:root.light-mode .featured-grid a.aitool-card {
  background: linear-gradient(180deg, rgba(9, 105, 218, 0.08), #ffffff 55%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border-color: rgba(9, 105, 218, 0.35);
}

:root.light-mode .featured-grid a.aitool-card::after {
  color: #0969da;
  background: rgba(9, 105, 218, 0.12);
  border-color: rgba(9, 105, 218, 0.25);
}